#ifndef SERIAL_H
#define SERIAL_H

#include <QObject>
#include <QSerialPortInfo>
#include <QSerialPort>
#include "sqlite.h"

class Serial : public QObject
{
    Q_OBJECT
public:
    static Serial *Get()
    {
        static Serial s;
        return &s;
    }

    explicit Serial(QObject *parent = nullptr);
    ~Serial();

    QSerialPort *serial;
    void sendData(QByteArray data);
signals:

public slots:
    void ReadData();
};

#endif // SERIAL_H
